package com.example.xaop.controller;

import com.example.xaop.factorybean.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xingyulai
 * @date 2024/3/13 4:08 PM
 * @description
 **/

@RestController
@RequestMapping("/user")
public class MainController {

    @Autowired
    private IService iService;


    @RequestMapping("/getName")
    public String getName() {

//        String name = iService.getName();

         String e="e";
        String b="b";
        String a="a";
        String c="c";
        String d="d";
        String f="f";





        return f;
    }

@RequestMapping("/getName2")
    public String getName2() {

        String name = iService.getName();

        String e="e";
        String b="b";
        String a="a";
        String c="c";
        String d="d";
        String f="f";

        return name;
    }


}
